package com.volunteer.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 评论实体类
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_comment")
public class Comment {

    @TableId(type = IdType.AUTO)
    private Long id;

    private Long parentId;

    private Long activityId;

    @TableField(exist = false)
    private String activityName;

    private Long userId;

    @TableField(exist = false)
    private String userName;

    private String content;

    private Integer likes;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;
}
